SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 38364: Using the TARGET= string in a drilldown value with the ACTIVEX device driver produces incorrect results

DetailsAboutRate It

In certain situations, you can create a drilldown graph for the web where the new target page opens in the current web page by adding TARGET="_self" to the value of the drilldown variable, as follows:

drillvar='TARGET="_self" HREF="http://www.sas.com"';

You can then specify HTML=DRILLVAR as part of your SAS/GRAPH® syntax, as follows:

proc gchart data=sashelp.class;
  vbar age / discrete html=drillvar;
run;
quit;

However, when using the ACTIVEX device driver with SAS® 9.2, the TARGET="_self" parameter is ignored and the new target page will open up in a new window. In addition, when using TARGET="_self" to execute a Javascript function upon drilldown, the Javascript function will not work at all. For example:

drillvar='TARGET="_self" HREF="javascript:javascriptfunction()"';

To circumvent this problem, remove the TARGET= parameter from the drilldown value and add PARAMETERS=("DrillTarget"="_self") to the ODS HTML statement as follows:

ods html file='sastest.html'
         parameters=("DrillTarget"="_self");


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemSAS/GRAPHz/OS9.2 TS1M09.3 TS1M0
Microsoft® Windows® for 64-Bit Itanium-based Systems9.2 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter 64-bit Edition9.2 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise 64-bit Edition9.2 TS1M09.3 TS1M0
Microsoft Windows XP 64-bit Edition9.2 TS1M09.3 TS1M0
Microsoft® Windows® for x649.2 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition9.2 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition9.2 TS1M09.3 TS1M0
Microsoft Windows Server 2003 Standard Edition9.2 TS1M09.3 TS1M0
Microsoft Windows XP Professional9.2 TS1M09.3 TS1M0
Windows Vista9.2 TS1M09.3 TS1M0
64-bit Enabled AIX9.2 TS1M09.3 TS1M0
64-bit Enabled HP-UX9.2 TS1M09.3 TS1M0
64-bit Enabled Solaris9.2 TS1M09.3 TS1M0
HP-UX IPF9.2 TS1M09.3 TS1M0
Linux9.2 TS1M09.3 TS1M0
Linux for x649.2 TS1M09.3 TS1M0
OpenVMS on HP Integrity9.2 TS1M09.3 TS1M0
Solaris for x649.2 TS1M09.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.